The Week View component > FWeekView (object) |
FWeekView (object)
The methods of the Week View component allow you to control the component at runtime. You can define the visual presentation of the component and react to user interaction with the component. You do not need to use a constructor to access the methods of the component.
The ActionScript extension for the Week View component is _wkv.
If you append this to your component instance names, code hinting and auto-completion
will
be available within the Flash authoring environment.
Component methods do not perform error checking for type, as do other native ActionScript objects and actions. Therefore, you should validate parameters before passing them to methods.
Method summary for the FWeekView object
Method name |
Description |
|---|---|
Returns an array of data associated with the passed in date. Data can be associated with a specific date using the setCellData method, and can be of any type. |
|
Returns a DataProvider of data associated with dates within the component. Each item within the the DataProvider will contain two fields, dateObj and data. |
|
Returns an array that holds the names of the days of the week. |
|
Returns a Boolean value indicating whether the component is enabled (true) or not (false). When the component is not enabled, it will not respond to user interaction. Its visual state will also be grayed-out to indicate its status. |
|
Returns an array that holds the names of the months of the year. |
|
Returns a Date object representing the date currently selected within the component. |
|
Returns a Date object representing the date currently selected within the component. |
|
Moves the Week View component forward one week. This will cause the onChangeHandler function to be called. |
|
Moves the Week View component backward one week. This will cause the onChangeHandler function to be called. |
|
| This methods stores and associates the data passed in with the specified Date object. If data passed in is an array it will replace any and all data associated with the date. Otherwise the data will be appended to the associated data. |
|
| This method specifies the function that will be called when the selected date within the component changes. If the second parameter is passed in, the change handler function will be run within its scope. If it is not specified, the change handler will be run within the _parent scope. |
|
| Specifies the DataProvider the component will use to populate its data. The data provider should contain two fields, dateObj and data. |
|
| Takes an array of Strings that contain the names of the days of the week. The first seven items of the array will be used to display the names of the days of the week (starting with Sunday) within the component. |
|
| Specifies whether the component is enabled (true) or disabled (false). If the component is disabled, it will not accept mouse or keyboard interaction from the user. The component will also be grayed-out to visually indicate its state to the user. |
|
| Takes an array of Strings that contain the names of the months of the year. The first 12 items of the array will be used to display the names of the months of the year within the component. |
|
| Specifies the date that should be selected within the component. |
|
| This method allows you to specify the width of the component in pixels. |